package com.thh.project.model.admin.enums;

import lombok.Getter;

/**
 * @Description
 * @Author thh
 * @Date 2020.05.07 19:37
 **/
@Getter
public enum CommonTableEnum {
    AD_CHANNEL("*",true,true,true,true),
    AD_SENSITIVE("*",true,true,true,true),
    //文章
    WM_NEWS("*",true,true,true,true),
    //爬虫
    CL_NEWS("*",true,true,true,true),
    // APP用户端
    AP_ARTICLE("*",true,false,false,false),
    AP_ARTICLE_CONFIG("*",true,false,true,false),
    AP_USER("*",true,false,true,false);


    String filed;
    //开启列表权限？
    boolean list;
    //开启增加权限？
    boolean add;
    //开启修改权限？
    boolean update;
    //开启删除权限？
    boolean delete;

    /**
     * @Description 有参构造
     * @Author thh
     * @Date 2020.05.07 19:38
     **/
    CommonTableEnum(String filed,boolean list,boolean add,boolean update,boolean delete){
        this.filed = filed;
        this.list = list;
        this.add = add;
        this.update = update;
        this.delete = delete;
    }
}
